
module.exports = [
  {
    url: '/flow/restart/detail',
    type: 'get',
    response: config => ({
      code: 20000,
      data: {
        service_name: 'order-web',
        product_name: '互联网医院',
        tag: 'T1_dsdjshjhdsj_20220210_8',
        created: '2022-02-10 14:00:00'
      }
    })
  },
  {
    url: '/flow/restart/pods',
    type: 'get',
    response: config => ({
      code: 20000,
      data: [{
        name: 'order-web-deployment-xxxx1',
        tag: 'T1_dsdjshjhdsj_20220210_8',
        status: 'running',
        restart: 1,
        created: '2022-02-10 14:00:00'
      },
      {
        name: 'order-web-deployment-xxxx2',
        tag: 'T1_dsdjshjhdsj_20220210_8',
        status: 'running',
        restart: 10,
        created: '2022-02-10 14:00:00'
      }]
    })
  },
  {
    url: '/flow/restart/steps',
    type: 'get',
    response: config => ({
      code: 20000,
      data: {
        steps: [
          {
            title: '提交工单',
            created: '',
            allowed: '',
            opuser: '',
            description: '',
            status: 'finish'
          },
          {
            title: '审核',
            created: '',
            allowed: '',
            opuser: '',
            description: '',
            status: 'finish'
          },
          {
            title: '重启',
            created: '',
            allowed: '',
            opuser: '',
            description: '',
            status: 'wait'
          },
          {
            title: '状态查询',
            created: '',
            allowed: 'auto',
            opuser: 'auto',
            description: '',
            status: 'wait'
          },
          {
            title: '确认',
            created: '',
            allowed: 'test',
            opuser: '',
            description: '',
            status: 'wait'
          }
        ],
        buttons: [
          {
            title: '通过',
            name: 'pass'
          },
          {
            title: '驳回',
            name: 'reject'
          }
        ]
      }
    })
  },
  {
    url: '/flow/deploy',
    type: 'get',
    response: config => ({
      code: 20000,
      data: [
        {
          id: 10,
          service_name: 'order-web',
          project_name: 'order',
          product_name: '互联网医院',
          version: 'T1_jhjdshjd_20220210_8',
          created: '2022-02-10 14:00:00',
          status: '进行中'
        },
        {
          id: 9,
          service_name: 'order-web',
          project_name: 'order',
          product_name: '互联网医院',
          version: 'T1_jhjdshjd_20220210_7',
          created: '2022-02-10 11:00:00',
          status: '完成'
        },
        {
          id: 8,
          service_name: 'order-web',
          project_name: 'order',
          product_name: '互联网医院',
          version: 'T1_jhjdshjd_20220210_6',
          created: '2022-02-10 10:00:00',
          status: '完成'
        }
      ],
      total: 11,
      page: 1,
      pagesize: 10
    })
  }]

